"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.fetchOrders = fetchOrders;
exports.submitOrder = submitOrder;
exports.startCooking = startCooking;
exports.acceptOrder = acceptOrder;
exports.rejectOrder = rejectOrder;
exports.finishCooking = finishCooking;
exports.getOrderDetail = getOrderDetail;
exports.submitReview = submitReview;
const api_1 = require("./api");
function fetchOrders(params) {
    return (0, api_1.callService)("ordersList", params);
}
function submitOrder(payload) {
    return (0, api_1.callService)("ordersSubmit", payload);
}
function startCooking(orderId) {
    return (0, api_1.callService)("ordersStart", { orderId });
}
function acceptOrder(payload) {
    return (0, api_1.callService)("ordersAccept", payload);
}
function rejectOrder(payload) {
    return (0, api_1.callService)("ordersReject", payload);
}
function finishCooking(orderId) {
    return (0, api_1.callService)("ordersComplete", { orderId });
}
function getOrderDetail(orderId) {
    return (0, api_1.callService)("ordersDetail", { orderId });
}
function submitReview(payload) {
    return (0, api_1.callService)("ordersReview", payload);
}
